import request from '@/utils/request'

export function pageProject(data) {
  return request({
    url: '/project/page',
    method: 'post',
    data
  })
}
export function getProject(id) {
  return request({
    url: `/project/get/${id}`,
    method: 'get',
  })
}
export function deleteProject(id) {
  return request({
    url: `/project/delete/${id}`,
    method: 'delete',
  })
}
export function saveProject(data) {
  return request({
    url: '/project/save',
    method: 'put',
    data
  })
}
export function editProject(data) {
  return request({
    url: '/project/edit',
    method: 'post',
    data
  })
}
export function listProject() {
  return request({
    url: '/project/list',
    method: 'get',
  })
}
export function getBudgetProjects(budgetId){
  return request({
    url: `/budget/getBudgetProjects/${budgetId}`,
    method: 'get',
  })
}
